import request from "../utils/request";

export const apiLogin = (data) => {
    return request({
        url: '/api/login',
        method: 'post',
        data
    })
}

// 获取用户信息
export const apigetUserInfo = () => {
    return request({
        url: '/api/getUserInfo'
    })
}

// 第三方登录
export const apigiteeLogin = (data) => {
    return request({
        url: '/api/giteeLogin',
        method: 'post',
        data
    })
}

// 获取活到区域
export const apigetAddress = () => {
    return request({
        url: '/api/getAddress'
    })
}

// 添加list
export const apoAddList = (data) => {
    return request({
        url: '/api/addList',
        method:'post',
        data
    })
}

export const apigetList = () => {
    return request({
        url: '/api/getList',
        method: 'post'
    })
}